var manager, g;
        $(f_initGrid);
        function f_initGrid()
        {
        	var model="Agent";
        	var message="代理商";
            g = manager = $("#maingrid").ligerGrid({
                columns: [
                { display: 'id', name: 'id', width: 50, type: 'int', frozen: true },
                { display: '用户姓名',name:'user.name',width:50},
                { display: '申请人或公司名', name: 'name',minWidth: 90 },
                { display: '电话', name: 'phone',width:60 },
                { display: '邮箱', name: 'email',width: 160 },
                { display: '申请时间', name: 'formatStrTime',width: 100 },
                { display: '操作', isSort: false, width: 120, render: function (rowdata, rowindex, value)
                {
                	 var h = "<a href='javascript:beginEdit(" + rowindex + ",\"" + model + "\",\"" + message + "\")'>查看</a> ";
  	                h+= "<a href='javascript:deleteRow(" + rowindex + ",\"" + model + "\")'>删除</a> ";
                    return h; 
                }
                }
                ],
                onSelectRow: function (rowdata, rowindex)
                {
                    $("#txtrowindex").val(rowindex);
                },
                enabledEdit: false,clickToEdit:false, isScroll: false,
                url:"manageLoadAgentList?p_type="+p_type,	
                pageSize:10,
                width: '100%'
            });   
        }
	